//
//  NSView+rab.swift
//  OnemeetingDemo
//
//  Created by 张衡 on 2019/12/6.
//  Copyright © 2019 www.onemeeting.1meetingIos. All rights reserved.
//

import Foundation

extension NSView {
    func zh_addBorder(radius:CGFloat,borderColor:NSColor?,borderWidth:CGFloat )  {
        self.wantsLayer = true
        self.layer?.masksToBounds = true
        self.layer?.cornerRadius = radius
        self.layer?.borderColor = borderColor?.cgColor
        self.layer?.borderWidth = borderWidth
    }
}
